Version

GetChildMenuItem<T>(T,String,Int32) Method

Gets the child menu item from the parent XamMenuBase item which is either at the specified index of the parent or matches the specified header of the child
Syntax
'Declaration
 
Protected Overloads Function GetChildMenuItem(Of T)( _
   ByVal parentMenuItem As T, _
   ByVal sChildItemHeader As System.String, _
   ByVal iChildItemIndex As System.Integer _
) As System.Object
protected System.object GetChildMenuItem<T>( 
   T parentMenuItem,
   System.string sChildItemHeader,
   System.int iChildItemIndex
)
protected: System.Object* GetChildMenuItem<T>( 
   T* parentMenuItem,
   System.string* sChildItemHeader,
   System.int iChildItemIndex
) 

Parameters

parentMenuItem
Parent XamMenuBase item
sChildItemHeader
Header (if any) of the child menu item
iChildItemIndex
Visible index (if needed) of the child menu item

Type Parameters

T
Type of the parent XamMenuBase item

Return Value

Returns the child menu item either matching the header or present at the specified index
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also